Add tests for shared components (FollowButton, PolicyActions, LabeledIcon, MessageBanner, TitledSectionCard, PaginatedItemsCard) - #2226
Open
olitreadwell wants to merge 1 commit into
Conversation
olitreadwell
requested review from
Mephistic,
alexjball,
kiminkim724,
mertbagt,
mvictor55,
nesanders,
sashamaryl and
timblais
as code owners
August 26, 2026 15:10
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
…Icon, MessageBanner, TitledSectionCard, PaginatedItemsCard)
olitreadwell
force-pushed
the
test/shared-components-coverage
branch
from
September 9, 2026 00:56
b35a121 to
741f2d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds unit tests for the shared components that back the testimony, bill, and committee pages:
FollowButton,PolicyActions,LabeledIcon,MessageBanner,TitledSectionCard, andPaginatedItemsCard. The tests lock in the logged-out Follow redirect, the follow/unfollow confirmation modals, and presentational rendering for the shared components.Checklist
firestore.indexes.json(Please do not only create indexes through the Firebase Web UI, even though the error messages may reccommend it - indexes created this way may be obliterated by subsequent deploys)Screenshots
N/A. Test-only change.
Known issues
N/A
Steps to test/reproduce
git fetch https://github.com/olitreadwell/maple.git test/shared-components-coveragegit checkout FETCH_HEADyarn install --frozen-lockfileyarn jest components/shared/ components/testimony/TestimonyDetailPage/PolicyActions.test.tsx --runInBandAI assistance
Drafted with AI assistance. The gap was found and verified against the current code, the change was verified before opening, and this diff was reviewed line by line.